import request from '@/utils/request/index.js'
export default {
	//查询首页滚动图
	getBanner(data){
		return request.request({
			url:"/base/basebanner/list",
			method:'post',
			data:{},
		})
	},
	//查询首页点选关键字
	getSearchWordList(data){
		return request.request({
			url:"/h5/searchwordconfig/queryList",
			method:'post',
			data: {"relatedType" : 0} ,

		})
	},
	//查询首页公告
	getBaseNotice(data){
		return request.request({
			url:"/base/basenotice/list",
			method:'post',
			data:{},
		})
	},
	//查询首页产品
	getProductList(productSearch){
		return request.request({
			url:"/h5/nocproduct/indexQueryPage",
			method:'post',
			data:{
				relatedType : 0,
				search: productSearch.search,
				page: productSearch.page,
				limit: productSearch.limit
			},
		})
	},
	//查询活动产品列表
	activityproduct(data){
		return request.request({
			url:"/h5/activityproduct/list",
			method:'get',
			data:{
				page:data.page,
				limit:data.limit
			},
		})
	},
	//购买活动产品付款接口
	OrderForActivity(data){
		return request.request({
			url:"/h5/nocorder/unifiedOrderForActivity",
			method:'post',
			data:{
				orderNum:data.orderNum,
				id:data.id,
				payAmount:data.payAmount,
				tradeType:data.tradeType,
				openId:data.openid
			},
		})
	},
	//下订单
	activitprosave(data){
		return request.request({
			url:"/h5/nocorder/activitprosave",
			method:'post',
			data:data,
		})
	},

}
